package com.example.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.domain.po.News;
import com.example.springboot.domain.po.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Author：伐柯梦姝
 * @Package：com.example.springboot.service
 * @Project：springboot
 * @name：NewsService
 * @Date：2025/2/4 21:13
 * @Filename：NewsService
 * @for:
 */
public interface NewsService extends IService<News> {
    List<News> getAll();

    News add(News news);

    News findById(Integer id);

    void delete(Integer id);

    PageInfo<News> findPage(News search, Integer pageNum, Integer pageSize);

    List<News> findByCondition(News search);

    News newsEdit(News news);

    List<News> GetNewData();


}
